package com.ruoyi.logCen.controller;

import com.alibaba.fastjson.JSON;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.logCen.domain.LogInfo;
import com.ruoyi.logCen.service.LogInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/testCon/logInfo")
public class LogInfoController extends BaseController {

    @Autowired
    private LogInfoService logInfoService;

    @PostMapping("/selectOneLogInfo")
    public AjaxResult selectOneLogInfo(@RequestBody LogInfo logInfo) {

        System.out.println(logInfo);

        logInfo = logInfoService.selectOne(logInfo);

        return AjaxResult.success(logInfo);

    }

}
